import { defineStore } from 'pinia';

export const useResponsiveStore = defineStore('responsive', {
  state: () => ({
    screenWidth: window.innerWidth,
    isMobile: window.innerWidth < 768,
  }),
  actions: {
    updateScreenSize() {
      this.screenWidth = window.innerWidth;
      this.isMobile = this.screenWidth < 768;
    },
  },
});
